<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/16
  Time: 8:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <script type="text/javascript" src="jquery-1.12.4.min.js"></script>
</head>
<body>

    <script type="text/javascript">
        $(function () {
            $("#btn").click(function () {
                // alert("绑定成功，事件触发！！！")
                $.ajax({
                    url: "http://localhost:8080/RBAC/ajax",
                    type: "post",
                    data: {
                        act: "feedBack",
                        username: "哈哈哈",
                        password: "123456"
                    },
                    success:function (data) {
                        alert(data);
                        alert(typeof data);
                        console.log(data);
                    },
                    dataType: "json"
                });
            });
        });
    </script>

    <button id="btn"> Ajax触发测试 </button>


</body>
</html>
